﻿@model Disco.Core.VersionInfo
@{
    ViewBag.Title = "Ontology Explorer";
}

@section scripts {
    @Scripts.Render("~/scripts/views/home.about.js")
}

@section featured {
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1>@ViewBag.Title.</h1>
                <h2>@ViewBag.Version</h2>
            </hgroup>
            <div>
                Please include the <b><i>Version Information</i></b> from this page into each <mark>bug report</mark>, <mark>support</mark> or <mark>change request</mark>. Thank you!<br /><br />
                <b>ATTENTION:</b> Please be aware that the <i>Web API</i> itself is NOT versioned yet! That means there is no new URI even for breaking changes for updates or new releases!
            </div>
        </div>
    </section>
}

<h1 class="collapsableHeadline" data-bind="click: onCollapsableHeadlineClick">Web API Assemblies</h1>
<div>
    <h3 class="collapsableHeadline" data-bind="click: onCollapsableHeadlineClick">Core</h3>
    <ul data-bind="foreach: core">
        <li data-bind="text: AssemblyName"></li>
    </ul>

    <h3 class="collapsableHeadline" data-bind="click: onCollapsableHeadlineClick">Dependencies</h3>
    <ul class="closed" data-bind="foreach: dependencies">
        <li data-bind="text: AssemblyName"></li>
    </ul>
</div>

<h1 class="collapsableHeadline" data-bind="click: onCollapsableHeadlineClick">Ontology Explorer Assemblies</h1>
<div>
    <h3 class="collapsableHeadline" data-bind="click: onCollapsableHeadlineClick">Core</h3>
    <ul>
        @foreach (var versionData in this.Model.VersionData.Where(assembly => assembly.AssemblyName.StartsWith("Disco.")))
        {
            @:<li>
            @Html.Raw(versionData.AssemblyName);
            @:</li>
        }
    </ul>

    <h3 class="collapsableHeadline" data-bind="click: onCollapsableHeadlineClick">Dependencies</h3>
    <ul class="closed">
        @foreach (var versionData in this.Model.VersionData.Where(assembly => !assembly.AssemblyName.StartsWith("Disco.")))
        {
            @:<li>
            @Html.Raw(versionData.AssemblyName);
            @:</li>
        }
    </ul>
</div>